/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package data;
import java.sql.*;
import java.util.*;


/**
 *
 * @author Daniel
 */
public interface Verwaltung extends java.rmi.Remote {
    public Produkt addProdukt(Produkt pr) throws java.rmi.RemoteException ;
    public Produkt update(Produkt x) throws java.rmi.RemoteException ;
    public void delete(Produkt x) throws java.rmi.RemoteException ;

    public Tisch addTisch(Tisch ti) throws java.rmi.RemoteException ;
    public Tisch update(Tisch x) throws java.rmi.RemoteException ;
    public void delete(Tisch x) throws java.rmi.RemoteException ;

    public Bestellung addBestellung(Bestellung be, Tisch ti) throws java.rmi.RemoteException ;
    public Bestellung update(Bestellung be, Tisch ti) throws java.rmi.RemoteException;
    public void delete(Bestellung x) throws java.rmi.RemoteException;

    public Vector getAllTische() throws java.rmi.RemoteException;
    public Vector getAllProdukte() throws java.rmi.RemoteException;
    public Vector getAllSpeisen() throws java.rmi.RemoteException;
    public Vector getAllGetraenke() throws java.rmi.RemoteException;

    public int getPRAnzahl_byTime (Timestamp start, Timestamp end, Produkt pr) throws java.rmi.RemoteException;

    public void addZuordnung(Bestellung be, Produkt pr, int anzahl) throws java.rmi.RemoteException;

    public boolean comparePRbezeichnung(Produkt x) throws java.rmi.RemoteException;
    public boolean compareTInummer(Tisch x) throws java.rmi.RemoteException;

    //public boolean equals () throws java.rmi.RemoteException ;
}